import { request } from '@/common/api/api'
const commonApi = {
	getTipsInfo:(id:string)=>{
		return request({
			url: `/agHAttentionMatter/findHAttentionMatter?userId=${id}`,
			method: 'GET',
		})
	},
	AIVoiceChat:(message:string,ifNetworking:string = '否')=>{
		return request({
			url:`/chat/testChat?message=${message}&ifNetworking=${ifNetworking}`,
			method: 'GET',
		})
	},
	// voiceToText:(file:any)=>{
	// 	return request({
	// 		url:'/recognize',
	// 		method:'POST',
	// 		data:file
	// 	},{'Content-Type': 'text/plain',authorization:''})
	// },
	getInfo:(qus:string)=>{
		return request({
			url: `/chat/testChat?message=${qus}&ifNetworking=否`,
			method: 'GET',
		})
	},
	
}
export default commonApi